package com.csc.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;

import org.springframework.stereotype.Repository;

import com.csc.domain.SystemStatus;

@Repository
public class SystemStatusDAOImpl implements SystemStatusDAO {
	@PersistenceContext
	private EntityManager em;
	
	@Transactional
	public SystemStatus getStatusByID(int sttId){
		SystemStatus sysStt = em.find(SystemStatus.class, sttId);
		return sysStt;
	}
}
